Refactored smells out of no_brainer/database.rb

Smells reported by reek:

Before:

 1: NoBrainer::Database has no descriptive comment
    (IrresponsibleModule)
20: NoBrainer::Database#purge! contains iterators nested 2 deep
    (NestedIterators)
24: NoBrainer::Database#purge! has the variable name 'e'
    (UncommunicativeVariableName)

After:

 1: NoBrainer::Database has no descriptive comment
    (IrresponsibleModule)

Notes:

Extracted self.truncate_table! utility function and made variables
more communicative.
Refactored smells out of no_brainer/connection.rb

Smells reported by reek:

Before:

 1: NoBrainer::Connection has no descriptive comment
    (IrresponsibleModule)
32: NoBrainer::Connection#parse_uri has approx 6 statements
    (TooManyStatements)

After:

 1: NoBrainer::Connection has no descriptive comment
    (IrresponsibleModule)

Notes:

Extracted out a private method to set the connection settings based on
a parsed URI.