Merge "Add profiling for database interaction"