add logic for DB operation