adding database and statistics scripts