adjusted database interface
Added handlertest file