Moved initDB in postsController