Put and get definition documents in the database.