Database assignment