Fixed postgresql db connector get cursor and get new cursor bugs that happen when no connection has been created yet.