Decided not to use sqlite3 for python. Instead I will be storing data in JSON format on the server and reading from that. Writing new polls in JSON to the server is working now.