added connection to the database, added sample view, model and controller