add comments, and add setupDBConnection function for timeout problem