Trying to resolve DB errors