fixed the package schemato confirm with server patterns
saved an extra parameter when sending messages
Changed database index to f the common key that will be present in bith sent and recieved messages