added rake task for api to store to db