webclient is now customizable as proof of concept, fixed export_database_to_mat