PDO convertion

Also what parameters the browseItems function needs