added Handler
refactored db access
commit