crm db script