re-wrote db.connect php because oops