moved insert of sample data into DB from servlet to listener

Change-Id: Idd907ccba6f99812896dc275c151023daaa38318
added '?createDatabaseIfNotExist=true' to MySQL url

Change-Id: If7a673ab6795386fdc77146b66f5c5308370b8e8
useless formatting (4 chars indentation)

Change-Id: If4dd01c976ca68e1f239a0c5efd42cc7640c6569