def _model_insert_query_string(model):
    """Returns the query string to insert a model into the database"""
    parameters = ', '.join(['?'] * len(model.fields))
    query = '"INSERT OR REPLACE INTO {} VALUES ({});"'.format(
        model.get_table_name(), parameters)

    return query