make create_{user_data,table} free functions