introduced app mode
added more dbs
exception handling for empty db