Write new post into database