db schema tightening