Database works now. Previous commit was horseshit

yes! good!