add function: Insert information into database.