db: return count(*) result instead of ResultSet for 'select/where' method
check if a message is already in db (based on receipt ID) before inserting it
return value of 0 on error is misleading
encode if a conflicting message was found in db in message ID
send the received reply only the new incoming message could be saved
link in about-dialog recovered