consistency changes; switched to PDO