Add static control for mysql/sqlite