rewrited to JDBC, implemented all required functionality except of remove user function