Updated functions for andoird to use to access and send data to the database