refining db schema