Upgrade Database Class

Insert / Update method added