fixing db-messages-get
silly bug