changed the pom file for executable war file.

Also written more tests for controller to ensure that data is entered
into database.