Fix login problem: forgetting to process cookies with database name.