Add collect of lock types/mode/granted per database.
Allow some metric commands to override collected data each time they are run.