fixed connect_db() to take an account name as an argument so that you can connect to different accounts