move database init out to a rake task