completed DB wrapper using PDO