- added database connection
- added database hooks for the posts