utility functions for database editor plugin