need to review and fix  problems with iPhone 5 and db