Well i agree it might be easier to use a web app though i think if the DB server supports stored procs it should be possible to use them as a middle layer.