Database PDO upgrade