more iphone app work, and some act::database changes