fixed bug in db schema