remove bootstrap database function and replace with activerecord migrate