Changed escape function to mysqli