Work with db almost done. App crashes. Need to fix prio 1.