A leveldown implementation for Phonegap