Build database connect form