fixed nullpointer db bug, addded log statements and added buttons to the personactivity for navigation