Made the complete build structure

Changes:
1. Properly arranged the db configuration files
2. Added web.xml
3. changed  pom.xml to manage  resources