created abstract postgres dao and javadoc