Find the way to control database access per plugin