def connect_db():
 rv = sqlite3.connect(app.config['DATABASE'])
 rv.row_factory = sqlite3.Row
 return rv

def connect_db ( ) : rv = sqlite3 . connect ( app . config [ 'DATABASE' ] ) rv . row_factory = sqlite3 . Row return rv
connects to the specific database .