edited db model