How do you programmatically set up a system database connection through API