Created an object to interact with database