got the database to work