DB functionality and fragments working. Bug when rotating device.