added the ability of saving csv entries to the database