fix loading of driver so that it checks for beginning of postgresql url before parsing anything

...tch other possible errors, reported by Nathaniel Waisbrot