wpdb->insert adds too many rows

This works if add this code in functions.php?

if ( ! function_exists( 'test_setup' ) ) :

function test_setup() {

    $ar = array(
    'price_content' => 'hello'
    );

$result = $wpdb->insert('hs_prices', $ar); // insert 'hello' into 'price_content'

}

add_action( 'after_setup_theme', 'test_setup' );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)