References now save to the db