added cleaning database and link_spec.rb