Adding mysqli code