save names to db