<?php
$result = run_query("SELECT * FROM `" . $config['table_prefix'] . "config` WHERE `name`='field_margin'");
if (!sql_fetch_assoc($result)) {
    run_query("INSERT INTO `" . $config['table_prefix'] . "config` (`name`, `value`) VALUES ('field_margin', '7')");
}