added most functionality of inputverifier, refactoring DBInterface