chaiwat update function login facebook database