Trying to access the database now throws a RuntimeException if no connection has been made.