Fixed theissue where the program would freeze on database query.