Added safer_db that Josh Hyde contributed.