Inserts attrid from test data into database if available