add database, and iOS TODO