Added flag system and storage in mySQL, SQLite, ...