fix random error, refactoring jdbc code
Added singleton to company