fixed function hex_to_int does not exists, add schema to wizstats tables, and many other fixes.

select users.id as user_id from users table, i didnt know how to select user_id form shares, @wizkid057 didnot give us the shares table schema, if add user_id field to shares table, the eloipool pool server will not fill this field, so i use this method to fix user_id is null or empty.