remade database to operate on enums...