can't get db to work