Remove debug code.
Rename uid column to messageid.

uid is a reserved word on Oracle databases.