trying to get a database working