successfully querried sql database from php script