Sample correction
Some DB funcs