Fix db.sql
Fix installation script
Add step during installation for apply compatibility mode