New re-write code

Made some new classes and Database connection functionality .
Still I have completed two pages.
User Login Module still pending to implement