html5 local database for train data, with function to add and get elements