Refactored the Update and Add Post actions. Created ResultSet methods for more easy code