added error handeling for empty case
linked "example" to github page
added real database uri