adding db and model