db stuff now working