Move Siena connection code to own function and use it in DatabaseCheck