SaveToDB() implementation