fixed db issues, which I created :D