ported android eavdb stuff to raspberry pi side, preparing for csv export