nodejs and JDBC refactor