Scripting capabilities for database model

Add scripting to allow custom and flexible manipulation of database model (tables, fields, etc.)