trying to get database to work