cleanup of code. record can be stored in the tables of DB.