Convert export.php (CSV) to RedBeanPHP