import database and build initial user interface.