Creating the Database and Controller