added used attribute in datastore table and locked in vm_data table