create a class for the db connection