Modify ui and Sqlite