Encapsulate database creation and deletion in the tests