[#12] Fixed New/Delete for database objects.