Added error; and database type.