synchronise controller action to deduct db connections