Added config model and database v0.2