created post and site controller with databases