fixed schema for urls as foreign key on messages