migrate freebase script to rails db tables