resolve db schema