fixed db not working