set up db integration for posts