mysql queries working now