a simple database access object for php