post and get with db working