DB cleaning: Refactor connecting to the database into a method
DB cleaning: Drop users created during smoke runs

Otherwise the databases may end up with thousands of test users which
are rarely used again (for example, RT's test suite does this).  This
can cause decent slowdowns when performing DDL operations in tests.