trying to get db to work