Updating bottle_sqlite.py to new bottle

Updating bottle_sqlite.py to new versions of bottle.
inspired by bottle-sqlalchemy
Adapted to python3