We want to implement GuiXT. How can we save the GuiXT scripts on the Database server itself?

You can use the "SAP Web Repository", Transaction SMW0. The notation for the script directory is SAPWR: ... . For details please see our documentation, "GuiXT scripts in SAP Web Repository" (top left drop-down menu of ducumentation page).