fixed some db issues