change database connecter algorithm