Changed date function to static
Updated rake to process all accounts