Re: William Baillie married Janet Bun 1805 Edinburgh 1805
Trinity House in Leith may be able to help regatding William's Occupation-
Note that this is a separate, Scottish organisation, not to be confused with Trinity House London.
Scotland's People is the most comprehensive source for Scottish BMDs etc, being run on behalf of the Registrar General of Scotland.
The only Ann Baillie baptised/born in that year in Fife, is not in Burntisland.
The mother's name is Janet, not certain of the father's.
The Baptism was on 1st December 1805.
What is the source of your information?
You should be able to VIEW a Scanned IMAGE of the Banns/Marriage on Scotland's People.
Assuming they survived long enough, you may find them in the 1841 and 1851 Censuses, also on Scotland's People.
There is also a fair chance that one or more died in the post-1855 Statutory Registration period; if so, the respective Death Record may be helpful.