Moves default workflow into base DatabaseConnection class. Adds documentation.