Refactor to share db conn. and use sep. transforms

- Custom transforms moved into own modules in transforms folder
- db now singleton and shared between models