Added secondary database functionality