Create a control box for database connection