Fix foreign key violation when adding meta data for a new queue.