Input from an sqlite database.