Add database connection

Add database connection and design the main interface