added test data bags, moved all database actions to _db.rb