fixed the db schema