Merge "Fix exception print due to wrong database operation."