This procedure accepts two parameters: names of two databases to compare.
Since it was a little bit arduous to write it what surely made me overlook some obvious mistakes and I am aware of the fact that it may contain some bugs, so I am waiting for feedback about it and I am open for any suggestions of improvement.