class made for db calls