add database thread for user_server