Fix some problems in connect and interact with database