add post to database