Add database management and dynamic model