fix wrong onlyif syntax
fix missing db name in grant