Fix warnings and able to make the first query