upload code refactoring
push data into local database