Originally posted by Ed Tse:
Posting source code is not allowed.
Please elaborate on "The DBMain interface does not carry any info about who is the client sending the request. You need to figure out a way to pass client identity through it. And your design should fit both remote and local databases."