db init using activerecord is done