Added custom database exceptions.