update record in databases