first version of db model