How to convert file to database in Magento?