db not working