Removed hard coded hashes and replaced with ActiveRecord calls. Added Rakefile and database.yml. All features now working as expected.