Removed encode from DB insert
Updated Javadoc