simple ko demo using database