modify model to use RDB (add TODO)