creating atomic functions on ContactServelet.java