Using SQL db to create object ID or application? - C#