rails syncing controllers and database