Extract categories mapping from list.go to a testable function in utils.go.
Generate random password after db initialization.