Made error messages less specific so that users don't get cryptic database error messages (they should never come up anyways).