added login implementation that examines sqlite database