My databases course was very much a "select * from users" kinda course. Oh there was a little bit about good practice for relational DBs and what not but I wouldn't call it a math class. Obviously this is going to depend on your school, program, etc. I took a lot of math and CS besides my discrete math CS course and algorithms I wouldn't really call them math courses any more than I would economics or chemistry. Sure there's math sometimes but it's not the focus.
General electives like a math major having to take a literature course is very different from a core required piece of the major being literature.