changed so adding to db should work now