Connect to DB

checking for DB connection and uploading patients