trying to get db working