Database save script, and adminLogin