Python script to connect to remote/local database and run queries.