Added ability to export tables in database