Database-agnostic modeling system