Fix install sql query and steps