Python script to connect to remote/local database and upload data.