refactored db and client install