! bugfixes in new db layer (phonegap)