finished db handler