updated android db code from raspberry pi side