fully functional redundant saving for mysql and sqlite