Return codes added to some database functions