support sold out classes, added basic db