add  schema for sqlitedb
do not use trinary operator here

it is confusing