working simple version of db and models