The class to use a database