Sql Select Return Empty String Python Functions