Hooo. This is far complex. Its all gone over my head.

that's a rather dodgy way to implement a DAL
Would you please guide me that what is better alternative way, and what is DAL?