renamed to db instead of models