Recording database name in source stats when applicable