Added map destructuring to database function definitions.