Simple encapsulation for mysql actions of JAVA version