Api for working with pdo library