you should be selecting a database first b4 sending a query to mysql