PDO/SQLite implementation and Template Method pattern