Updated db connection files
Updated checkExistance method to the new db connection syntax