fixed some db issues
Some changes