Use staging table and SQL functions for existence
Remove 'GRANT ALL' statements for owner