import os
import sqlite3

db_filename = 'todo.db'
new_db = not os.path.exists(db_filename)

conn = sqlite3.connect(db_filename)

if new_db: 
    print ("Please create Schema")
else: 
    print ("DB is already created - mostly the schema exists")

conn.close()

import os
import sqlite3

db_filename = 'todo.db'
new_db = not os.path.exists(db_filename)

conn = sqlite3.connect(db_filename)

if new_db: 
    print ("Please create Schema")
else: 
    print ("DB is already created - mostly the schema exists")

conn.close()
