database is now working