got simple database insert and retrieval working