add db connection + architecture

- add handlers package
- add models package
- add database package