Flask uploading with SQLite Database