add save record function + change database (create table record)