separated controllers,changed appt data type on db, and fixed tests.