add method to get uid and insert nonexistent users