make active user registration timeline weekly, optimize some queries