First version of db models