Fixed some errors

Ensured that database is not created multiple times.
Merge pull request #1 from supriya-rea/ServletForDB

Fixed some errors