bin: connect to the database on main