Move function to get all todo items into Database
Use getTodos in Main
Fix UI. json-over-http returns response body