Linking your fresh install to the old database. Open \include\ost-config.php and set the correct parameters
#Mysql Login info
define('DBTYPE','mysql');
define('DBHOST','localhost');
define('DBNAME','your_db_name');
define('DBUSER','your_login');
define('DBPASS','your_password');