Throw db errors