Added code to retrieve missions from database