final preparation for dataBase connection