check the database connection witj assert function