Added model and database support.