Created db test rake tasks

Updated version of https://github.com/Katello/katello/pull/2806