Added database cleaner gem
Added some functional tests and fixed minor issues