Just working with postgres, but can be easily adapted to work with both mysql and postgres.
[Validate]