Modified Merge databases code.
Added ability to specify gemproject to be copied beside the output gemdb