Use load event to configure database