Created DatabaseBase::trxTimestamp method and added usage in ActiveUsers query

Change-Id: Iba3c83ce8010583908f9dbaa8348f7226f524793
Merge "Created DatabaseBase::trxTimestamp method and added usage in ActiveUsers query"