Adding conditional compilation option to disable the ranking database.

Change-Id: I81371ca13710c687dc0ed48e5f8d0cc99ccb7b00