Fixing issues with db, reseting