Move `postgresql_interface.js to lib