Added DB, fix logical on server for filtering messages.