fixed db initialization problem

was not working somehow