Fix deprecated MySQL key_buffer, change timezone