added client handler and db connection