TODO

To improve existing code

1. avoid from remote import

To improve performance

1. avoid from postgres triggers