basic ORM for MySQL