First code for manage database.
Pending event for OUT button added