Refactoring FieldObject into different interfaces to api-access and to sql-access