fix - return correct uid if new user added to db

NOTE: mysqli last insert id returns always 0 on the users table since auto increment is turned off.