Same UpdateDatabase method for multiple types of objects - C#