fix login and db pooling, ported to mojito@0.92 and node V10.X