add clone function to api.data with tests and manage.py command