Successfully realized reading database in main_frame.