implemented basic returning of stored data in sqlite
make use of xrange
modified shebang