PHP MySQL Datagrid for CRUD with document uploads, image uploads and resizing, and child data relations