-subscribe database functionality