Add profiling abilities for database.