phonebook app connecting to pg using java servlet