Small fix for database profiling