added a default connection to the database read and write functions that can be set in options()