started to work on the db side