Console access to database by PHP PDO