message ids are no longer integers or primary keys in messages/locations tables

this is the first step to making it so that unsent messages use UUIDs.