Update local database management. Add post to rails method in service handler
Fixed dbs. Fixed offline handling
Added NetworkDetector class
Removed unneeded files