Fix SQL bug
Can run whan not installed yet