added database connection with pdo api