add trains to database