UC-2200:
* Changed time parameters from int to unsigned long.
* Added expireTime on all queries for unexpired records
* Added 500 response code for successful registrations that produced no contacts from regdb
* Adjust subscription database function calls to prefer primary
* Added shardId in subscription database expiration removal
* Improved logging