PHP library for MySQL storage