Fix line endings
Fix database errors
Convert routes to controllers, add CRUD stuff