Objects for a database programming language