add dbreplica app
more detailed logging and level control
add debug logging switcher