gen scaffold posts and database