DB improvements

Additional improvements for accessing objects stored into a database.