adds unique constraint on username
reworks sendMessage
rework getMessages