Add loading from database. Extract tPoint class to another file.