Update pdbc->query()

small update that makes it possible to chain query with fetch.

$result = $pdbc->query($query)->fetch();
Updated lib/core classes readability

Some comments, variable & function names are updated to improve
readabilty.