added a SQLalchemy wrapper class