trying to get database working