Sample code for syncing enums with db values at compile time