simplified mysql script