Add db model and backup

Add db model and backup