added visit class and created the model and database