database assignment