changed db schema to reflect api change