get and post with the db