Added before_first_request which creates a sync folder