Fix warnings
Fix OPAL-2435: Block database change for project with data