added pdo class for db interaction