change the jdbc driver from mysql to postgresql and connect to server