Add new functions to connect to server and db, and set new variables for AWS.