added postgresql support and js runtime