How to interact with Database