added print function
no more crosswalk call for local
created localVersion variable to switch between local and database