Split resource_setup for database tests

Split up the resource_setup method for all the database tests, as per the
latest spec.

Partially-implements bp:resource-cleanup

Change-Id: I37278495084e6474ee85ff293f18358b307986aa
4 files changed