changed db model