improve install sql, fix issue with not existing publication