creating a Database class