qq login; connect db in init()