1. fix db problem when login