Database intialization and insertion tested.

Single connection to database now opens and closes properly.
Also added id to schema to iterate through table while appending to it.