correct db schema