Bug/1004539/android date range

Moved javascript from android html to separate android.js file. Refactored code, and added sql to platform route.