added tearDown method. added method to get database.