now saving into basex