database works now