posting to db not working