UI interact with Database Correctly