move associationsto db module