Fix java.lang.IndexOutOfBoundsException, fix  java.sql.SQLException: Column 'ip' not found , add ip log