makes some methods in DatabaseImpl private
makes kumbaya android friendly. refactors code, fixes bugs and adds the necessary infrastrucutre to make it work. needs cleaning up.