Refactoring + trackBar fix in DB