Fixing bug in source stats: Adding back database stats to source-stats